home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / c / mc51bugs.zip / Q30411 < prev    next >
Text File  |  1988-07-21  |  903b  |  41 lines

  1. Q30411 Incorrect Error Message Generated with Syntax Error
  2. C Compiler
  3. 5.00 5.10
  4. MS-DOS
  5.  
  6.  
  7. Problem:
  8.    The following example generates the "C2122: typedef specifies
  9. different structure" error message. This error is misleading because
  10. there is no typedef contained in the code.
  11.    The compiler is not flagging the missing semicolon (;) after the
  12. structure declaration.
  13.    The following is the sample code:
  14.  
  15. #include  <stdio.h>
  16.  
  17. void main( void );
  18.  
  19. struct abc
  20.        {
  21.        int data;
  22.        struct abc *lc;
  23.        struct abc *rc;
  24.        }              /* missing ; */
  25.  
  26. void main()
  27. {
  28.    printf("Hello world.\n");
  29. }
  30.  
  31. Response:
  32.    Microsoft confirmed this to be a problem in C Compiler Versions
  33. 5.00 and 5.10.
  34.    Microsoft is researching this problem and will post new information
  35. as it becomes available.
  36.  
  37.  
  38.  
  39. Keywords:  buglist5.00 buglist5.10
  40. Updated  88/07/21 03:19
  41.